FrameLib  0.1
Arbitrarily timed and sized frame-based DSP
FL_FP Class Reference

#include <FrameLib_FixedPoint.h>

Public Member Functions

 FL_FP ()
 
 FL_FP (uint64_t a, uint64_t b)
 
 FL_FP (const FL_SP &val)
 
 FL_FP (const double &val)
 
uint64_t intVal ()
 
uint64_t fracVal ()
 
FL_FPoperator+= (const FL_FP &b)
 
FL_FPoperator-= (const FL_FP &b)
 
FL_FPoperator*= (const FL_FP &b)
 
FL_FPoperator/= (const FL_FP &b)
 
FL_FPoperator++ ()
 
FL_FPoperator++ (int)
 
FL_FPoperator-- ()
 
FL_FPoperator-- (int)
 
 operator double () const
 
FL_FPoperator= (const double &a)
 
FL_FPoperator+= (const double &b)
 
FL_FPoperator-= (const double &b)
 
FL_FPoperator*= (const double &b)
 
FL_FPoperator/= (const double &b)
 

Friends

bool nonZeroPositive (const FL_FP &a)
 
bool operator== (const FL_FP &a, const FL_FP &b)
 
bool operator< (const FL_FP &a, const FL_FP &b)
 
bool operator> (const FL_FP &a, const FL_FP &b)
 
bool operator<= (const FL_FP &a, const FL_FP &b)
 
bool operator>= (const FL_FP &a, const FL_FP &b)
 
bool operator! (const FL_FP &b)
 
FL_FP operator+ (const FL_FP &a, const FL_FP &b)
 
FL_FP operator- (const FL_FP &a, const FL_FP &b)
 
FL_FP operator* (const FL_FP &a, const FL_FP &b)
 
FL_FP operator/ (const FL_FP &a, const FL_FP &b)
 
bool operator== (const FL_FP &a, const double &b)
 
bool operator== (const double &a, const FL_FP &b)
 
bool operator< (const FL_FP &a, const double &b)
 
bool operator< (const double &a, const FL_FP &b)
 
bool operator> (const FL_FP &a, const double &b)
 
bool operator> (const double &a, const FL_FP &b)
 
bool operator<= (const FL_FP &a, const double &b)
 
bool operator<= (const double &a, const FL_FP &b)
 
bool operator>= (const FL_FP &a, const double &b)
 
bool operator>= (const double &a, const FL_FP &b)
 
FL_FP operator+ (const FL_FP &a, const double &b)
 
FL_FP operator+ (const double &a, const FL_FP &b)
 
FL_FP operator- (const FL_FP &a, const double &b)
 
FL_FP operator- (const double &a, const FL_FP &b)
 
FL_FP operator* (const FL_FP &a, const double &b)
 
FL_FP operator* (const double &a, const FL_FP &b)
 
FL_FP operator/ (const FL_FP &a, const double &b)
 
FL_FP operator/ (const double &a, const FL_FP &b)
 

Constructor & Destructor Documentation

◆ FL_FP() [1/4]

FL_FP::FL_FP ( )
inline

◆ FL_FP() [2/4]

FL_FP::FL_FP ( uint64_t  a,
uint64_t  b 
)
inline

◆ FL_FP() [3/4]

FL_FP::FL_FP ( const FL_SP val)

◆ FL_FP() [4/4]

FL_FP::FL_FP ( const double &  val)

Member Function Documentation

◆ fracVal()

uint64_t FL_FP::fracVal ( )
inline

◆ intVal()

uint64_t FL_FP::intVal ( )
inline

◆ operator double()

FL_FP::operator double ( ) const
inline

◆ operator*=() [1/2]

FL_FP& FL_FP::operator*= ( const FL_FP b)
inline

◆ operator*=() [2/2]

FL_FP& FL_FP::operator*= ( const double &  b)
inline

◆ operator++() [1/2]

FL_FP& FL_FP::operator++ ( )
inline

◆ operator++() [2/2]

FL_FP& FL_FP::operator++ ( int  )
inline

◆ operator+=() [1/2]

FL_FP& FL_FP::operator+= ( const FL_FP b)
inline

◆ operator+=() [2/2]

FL_FP& FL_FP::operator+= ( const double &  b)
inline

◆ operator--() [1/2]

FL_FP& FL_FP::operator-- ( )
inline

◆ operator--() [2/2]

FL_FP& FL_FP::operator-- ( int  )
inline

◆ operator-=() [1/2]

FL_FP& FL_FP::operator-= ( const FL_FP b)
inline

◆ operator-=() [2/2]

FL_FP& FL_FP::operator-= ( const double &  b)
inline

◆ operator/=() [1/2]

FL_FP& FL_FP::operator/= ( const FL_FP b)
inline

◆ operator/=() [2/2]

FL_FP& FL_FP::operator/= ( const double &  b)
inline

◆ operator=()

FL_FP& FL_FP::operator= ( const double &  a)
inline

Friends And Related Function Documentation

◆ nonZeroPositive

bool nonZeroPositive ( const FL_FP a)
friend

◆ operator!

bool operator! ( const FL_FP b)
friend

◆ operator* [1/3]

FL_FP operator* ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator* [2/3]

FL_FP operator* ( const FL_FP a,
const double &  b 
)
friend

◆ operator* [3/3]

FL_FP operator* ( const double &  a,
const FL_FP b 
)
friend

◆ operator+ [1/3]

FL_FP operator+ ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator+ [2/3]

FL_FP operator+ ( const FL_FP a,
const double &  b 
)
friend

◆ operator+ [3/3]

FL_FP operator+ ( const double &  a,
const FL_FP b 
)
friend

◆ operator- [1/3]

FL_FP operator- ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator- [2/3]

FL_FP operator- ( const FL_FP a,
const double &  b 
)
friend

◆ operator- [3/3]

FL_FP operator- ( const double &  a,
const FL_FP b 
)
friend

◆ operator/ [1/3]

FL_FP operator/ ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator/ [2/3]

FL_FP operator/ ( const FL_FP a,
const double &  b 
)
friend

◆ operator/ [3/3]

FL_FP operator/ ( const double &  a,
const FL_FP b 
)
friend

◆ operator< [1/3]

bool operator< ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator< [2/3]

bool operator< ( const FL_FP a,
const double &  b 
)
friend

◆ operator< [3/3]

bool operator< ( const double &  a,
const FL_FP b 
)
friend

◆ operator<= [1/3]

bool operator<= ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator<= [2/3]

bool operator<= ( const FL_FP a,
const double &  b 
)
friend

◆ operator<= [3/3]

bool operator<= ( const double &  a,
const FL_FP b 
)
friend

◆ operator== [1/3]

bool operator== ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator== [2/3]

bool operator== ( const FL_FP a,
const double &  b 
)
friend

◆ operator== [3/3]

bool operator== ( const double &  a,
const FL_FP b 
)
friend

◆ operator> [1/3]

bool operator> ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator> [2/3]

bool operator> ( const FL_FP a,
const double &  b 
)
friend

◆ operator> [3/3]

bool operator> ( const double &  a,
const FL_FP b 
)
friend

◆ operator>= [1/3]

bool operator>= ( const FL_FP a,
const FL_FP b 
)
friend

◆ operator>= [2/3]

bool operator>= ( const FL_FP a,
const double &  b 
)
friend

◆ operator>= [3/3]

bool operator>= ( const double &  a,
const FL_FP b 
)
friend

The documentation for this class was generated from the following files: